package com.xxgc.aop.spring;

import org.springframework.stereotype.Component;

//用户登录接口的实现
@Component
public class UserLoginSpring implements IUserLoginSpring {
    @Override
    public boolean userLogin(String name, String pass) {
        System.out.println("执行中");
        if("张三".equals(name) && "123456".equals(pass)){
            return true;
        }else{
            return false;
        }
    }

    @Override
    public String getUserMsg() {
        System.out.println("获取用户信息执行中");
        return null;
    }

    @Override
    public String getCustomerMsg() {
        System.out.println("获取客户信息");
        String name = "张三";
        //int num = Integer.valueOf(name);
        return null;
    }

    @Override
    public String getAdminMsg() {
        System.out.println("获取管理员信息");
        return null;
    }
}
